<?php
use think\facade\Route;

Route::group(function() {
    Route::post('/login', 'user/login');
    Route::post('/register', 'user/register');
    Route::post('/email', 'user/email');
    Route::post('/logOut', 'user/logOut');
    Route::post('/writer', 'user/writeDiscuss')
        ->middleware(\app\middleware\Auth::class);
})->middleware(\app\middleware\Cross::class);